package cn.inyaa.admin.blog.service;

import cn.inyaa.admin.blog.bean.InyaaTag;
import cn.inyaa.admin.blog.dao.InyaaTagDao;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@RequiredArgsConstructor
public class InyaaTagService {

    private final InyaaTagDao inyaaTagDao;

    public List<InyaaTag> findAll() {
        return inyaaTagDao.findAll();
    }

    public void save(InyaaTag tag) {
        inyaaTagDao.save(tag);
    }

    public void delete(InyaaTag tag) {
        inyaaTagDao.delete(tag);
    }
}
